mkdir out
SET PARAMS=-fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -Wall -msse -msse2 -DHAVE_CONFIG_H=1
SET INC=-I. -I../ -I../lib/crypto -I../libcperciva/alg -I../libcperciva/util
gcc %PARAMS% %INC% -o out/crypto_scrypt-sse.o -c ../lib/crypto/crypto_scrypt-sse.c
gcc %PARAMS% %INC% -o out/scryptenc_cpuperf.o -c ../lib/scryptenc/scryptenc_cpuperf.c
gcc %PARAMS% %INC% -o out/memlimit.o -c ../lib/util/memlimit.c
gcc %PARAMS% %INC% -o out/sha256.o -c ../libcperciva/alg/sha256.c

gcc -shared -o out/scrypt.dll -Wl,--out-implib,out/scrypt.lib out/crypto_scrypt-sse.o out/scryptenc_cpuperf.o out/memlimit.o out/sha256.o -fexceptions
